package com.example.demo.Controller;


import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/demo")
public class HelloController {

    @RequestMapping("/sayhi")
    public String hello(){
        return " hello!!";
    }

    @RequestMapping(value = "v1",method = RequestMethod.GET)
    public String v1(){
        return "hello v1";
    }
    @GetMapping("/v2")
    public String v2(){
        return "hello v2";
    }

    @RequestMapping(value = "v3",method = RequestMethod.POST)
    public String v3(){
        return "hello v3";
    }

    @PostMapping("/v4")
    public String v4(){
        return "hello v4";
    }






}
